<?php include('header.html') ?>

<?php if(is_delete_tweet()) : ?>
  <div class='delete'>
    <p>
      Are you really sure you want to delete your tweet?<br />
      There is no way to undo this action.
    </p>
    <?php delete_html() ?>
  </div>
<?php else : ?>
  <div class='update'>
    <?php update_html() ?>
  </div>
<?php endif ?>

<div class='tweets'>
  <ul>
    <?php while (has_tweet_list()) : ?>
    <li <?php list_tweet_item_class() ?>>
      <?php list_tweet_item_html() ?>
    </li>
    <?php endwhile; ?>
  </ul>
</div>

<div class='page'>
  <?php tweet_page_menu() ?>
</div>

<?php include('footer.html') ?>
